
import { http } from './../utils'
const noticeList = params => http.get('/api/news/list', params) //公告列表
const noticeAdd = params => http.post('/api/news/add', params) //添加
const noticeDelete = params => http.get('/api/news/delete', params) //删除
const noticeDeleteall = params => http.post('/api/news/deleteall', params) //批量删除
const noticeTypeList = params => http.get('/api/newstype/list', params) //公告分类
const noticeSingle = params => http.get('/api/news/get', params) //单条公告

export default {
    noticeList,
    noticeAdd,  
    noticeDelete,
    noticeDeleteall,
    noticeTypeList,
    noticeSingle
}